home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1297 / AMOSLIST / 000127_amos-request@svcs1.digex.net_Sat Dec 13 18:39:56 1997.msg < prev    next >
Text File  |  1998-06-24  |  4KB  |  97 lines

  1. >From amos-request@svcs1.digex.net  Sat Dec 13 18:39:56 1997
  2. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  3.     by pony-2.mail.digex.net (8.8.8/8.8.8) with ESMTP id SAA06231
  4.     for <mcox@access.digex.net>; Sat, 13 Dec 1997 18:39:56 -0500 (EST)
  5. Received: (from daemon@localhost)
  6.     by svcs1.digex.net (8.8.5/8.8.5) id PAA21846
  7.     for amos-out; Sat, 13 Dec 1997 15:38:47 -0500 (EST)
  8. Received: from pony-1.mail.digex.net (pony-1.mail.digex.net [204.91.241.5])
  9.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id PAA21843
  10.     for <amos-list@svcs1.digex.net>; Sat, 13 Dec 1997 15:38:46 -0500 (EST)
  11. Received: from mail1.desupernet.net (mail.desupernet.net [204.249.184.22])
  12.     by pony-1.mail.digex.net (8.8.8/8.8.8) with SMTP id PAA22529
  13.     for <amos-list@access.digex.net>; Sat, 13 Dec 1997 15:38:41 -0500 (EST)
  14. Received: (qmail 28293 invoked from network); 13 Dec 1997 20:31:56 -0000
  15. Received: from unknown (HELO redrose.net) (mushy-pd@208.7.248.154)
  16.   by 204.249.184.22 with SMTP; 13 Dec 1997 20:31:56 -0000
  17. From: Mush <mushypd@redrose.net>
  18. Reply-To: mushypd@redrose.net
  19. To: Jens Vang Petersen <top_cat@post8.tele.dk>
  20. CC: amos-list@access.digex.net
  21. Date: Sat, 13 Dec 1997 15:35:36 +0500
  22. Message-ID: <yam7286.1845.3878816@mail.redrose.net>
  23. In-Reply-To: <yam7286.417.1747392168@post8.tele.dk>
  24. X-Mailer: YAM 1.3.4 [020] - Amiga Mailer by Marcel Beck
  25. Organization: Mushroom PD - AMOS Public Domain Library
  26. Subject: Re: GUI extension..
  27. MIME-Version: 1.0
  28. Content-Type: text/plain
  29. Status: O
  30. X-Status: 
  31.  
  32. It was on the night of 13-Dec-97, when no creatures were stirring, and all was
  33. silent. Suddenly, Jens jumped out from behind a rock and wouldnt stop shouting
  34. about "GUI extension.." until I was forced to knock them out:
  35. -> Hello..
  36.  
  37. -> I've started to use the GUI extension (great stuff) but a few questions
  38. -> has popped up:
  39.  
  40. -> 1) The command 'Gui Title' is noted in the guide, however that command
  41. ->    does not exist (Looked in the lib with a hex-monitor and found that
  42. ->    the command is called 'Gui Titles')..
  43.  
  44. This is a known bug in the guide file. You also have to have 2 entries for
  45. each command, where IIRC the guide said you could use just one.
  46.  
  47. -> 2) While looking in the lib I noted that the extension calls up the
  48. ->    'Gadtools.Library'. Is this a rom-lib (like exec) or should it be
  49. ->    in my libs: (it isn't there but the extension runs great anyway)..
  50.  
  51. It works fine without it, as it is a ROM lib.
  52.  
  53. -> 3) There's a slight bug in 'Gui Asl', if I pad the path with '/' (like
  54. ->    'ab3:includes/' then the returned filename holds two '/' in row 
  55. ->    ('ab3:includes//test.lnk') and the file can't be found by amos..
  56.  
  57. Yes, I fixed this problem in one of my examples for the next release of the
  58. extension. Le,mme get the code...
  59.  
  60.    If A=9
  61.       ' Grab a file from the user
  62.       Do 
  63.          F$=Gui Asl$("Pick a List of Email
  64. recipients..."+Chr$(0),Dir$,"",Chr$(0))
  65.          F$=Gui Dir$
  66.          If Mid$(F$,Len(F$),1)<>"/" and Mid$(F$,Len(F$),1)<>":" : F$=F$+"/" :
  67. End If 
  68.          F$=F$+Gui File$
  69.          
  70.          If Gui File$="" : Exit : End If : Rem Exit 
  71.          
  72.          If Exist(F$) and F$<>""
  73.             Dir$=Gui Dir$
  74.             TEMP$="" : Gui Set 1,2,0,Varptr(TEMP$)
  75.             TEMP$=F$ : Gui Set 1,2,0,Varptr(TEMP$)
  76.             Exit 
  77.          End If 
  78.       Loop 
  79.    End If 
  80.  
  81. This is the code I use in my MPDMailpostV2 routine, and it handles it all
  82. fine. It also handles the bug for when you change directorys, as it will
  83. only add the / onto the end if it really needs it.
  84.  
  85. Any other questions, just ask!
  86.  
  87. Andrew "Mushroom" Kellett
  88. --
  89.  Email: Andy Kellett <mushypd@redrose.net>  Team *AMOS* + IAPA Team *AMIGA*
  90.   alt.religion.amos - AMOS now on usenet! AMOS Mailinglist also mirrored
  91.  
  92.      World's Largest AMOS Homepages - http://www.mushy-pd.demon.co.uk
  93.                Official F1 Software Distributor for the USA
  94.  
  95.          Massive FTP site with AMOS/C64 and Mods/Samples + more at
  96.                             mushy-pd.dyn.ml.org
  97.